Skip to main content

Get Current URL

AutomatR.Web.GetCurrentURL

The "Get Current URL" activity in AutomatR's Web Activities category retrieves the current URL from a web browser. This activity is useful when you need to capture and utilize the URL during a web automation workflow.

Properties

NameDescription
Misc
Display NameProvides a customizable name for the activity displayed in the workflow. String variables containing the desired display name.
Optional
DelaySpecifies the amount of time (in seconds) to wait before executing the "Get Current URL" activity. This can be useful for handling synchronization issues. Integer variables containing the delay duration. Ex.: If the amount of time is 1000 milliseconds or 1 sec, i.e. 1.
Output
URLOutputs the current URL as a string. Use a string variable to store the retrieved URL for further processing within the workflow.

How to use:

  1. Drag and drop the "Get Current URL" activity onto the workflow.
  2. Optionally, configure the delay based on your requirements.
  3. Create a string variable to store the current URL (e.g., "currentURL").
  4. Execute the workflow to obtain the current URL from the web browser.

Example: Consider an example where the "Get Current URL" activity is used to retrieve the URL during a web automation workflow:

Get Current URL:
Delay: 2
URL: currentURL

In this example, the activity waits for 2 seconds (optional) and then retrieves the current URL from the web browser, storing it in the "currentURL" string variable for further use.